package org.gdstash.quest;

import org.gdstash.file.GDReader;

import java.io.IOException;
import java.util.LinkedList;
import java.util.List;

public class GDQuestTaskList {
    private List<GDQuestTask> tasks;

    public GDQuestTaskList() {
        this.tasks = new LinkedList<GDQuestTask>();
    }

    public void read() throws IOException {
        int val = 0;
        this.tasks.clear();
        val = GDReader.readEncInt(true);
        for (int i = 0; i < val; ++i) {
            final GDQuestTask task = new GDQuestTask();
            task.read();
            this.tasks.add(task);
        }
    }
}
